package com.liuning.graduationdemo.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.liuning.graduationdemo.entity.MedicalRecord;
import com.liuning.graduationdemo.mapper.MedicalRecordMapper;
import com.liuning.graduationdemo.service.IMedicalRecordService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 病历表 服务实现类
 * </p>
 *
 * @author pumpkin
 * @since 2022-06-05
 */
@Service
public class MedicalRecordServiceImpl extends ServiceImpl<MedicalRecordMapper, MedicalRecord> implements IMedicalRecordService {

    @Resource
    private MedicalRecordMapper medicalRecordMapper;

    @Override
    public Page<MedicalRecord> findPage(Page<MedicalRecord> page, String patientName, String doctorName) {
        return medicalRecordMapper.findPage(page,patientName,doctorName);
    }

    @Override
    public Page<MedicalRecord> findPersonMedicalRecord(Page<MedicalRecord> page,Integer patientId) {
        return medicalRecordMapper.findPersonMedicalRecord(page,patientId);
    }
}
